package top.ieei.demo.ftp.server;

public class FtpConfig
{
	/**
	 * 是否允许匿名登录
	 */
	private boolean isAnonymousEnable;
	
	/**
	 * 最大匿名用户数
	 */
	private int maxAnonymousCount;
	
	/**
	 * 最大下载速度
	 */
	private long maxDownloadSpeed;
	
	/**
	 * 最大上传速度
	 */
	private long maxUploadSpeed;
	
	/**
	 * 密码
	 */
	private String password;
	
	/**
	 * 用户名
	 */
	private String userName;
	
	/**
	 * 获取配置文件中的FTP设置
	 * @return
	 */
	public static FtpConfig getFtpConfig()
	{
		FtpConfig cfg = new FtpConfig();
		cfg.setUserName("");
		
		return cfg;
	}

	/**
	 * @return the isAnonymousEnable
	 */
	public boolean isAnonymousEnable()
	{
		return isAnonymousEnable;
	}

	/**
	 * @param isAnonymousEnable the isAnonymousEnable to set
	 */
	public void setAnonymousEnable(boolean isAnonymousEnable)
	{
		this.isAnonymousEnable = isAnonymousEnable;
	}

	/**
	 * @return the maxAnonymousCount
	 */
	public int getMaxAnonymousCount()
	{
		return maxAnonymousCount;
	}

	/**
	 * @param maxAnonymousCount the maxAnonymousCount to set
	 */
	public void setMaxAnonymousCount(int maxAnonymousCount)
	{
		this.maxAnonymousCount = maxAnonymousCount;
	}

	/**
	 * @return the maxDownloadSpeed
	 */
	public long getMaxDownloadSpeed()
	{
		return maxDownloadSpeed;
	}

	/**
	 * @param maxDownloadSpeed the maxDownloadSpeed to set
	 */
	public void setMaxDownloadSpeed(long maxDownloadSpeed)
	{
		this.maxDownloadSpeed = maxDownloadSpeed;
	}

	/**
	 * @return the maxUploadSpeed
	 */
	public long getMaxUploadSpeed()
	{
		return maxUploadSpeed;
	}

	/**
	 * @param maxUploadSpeed the maxUploadSpeed to set
	 */
	public void setMaxUploadSpeed(long maxUploadSpeed)
	{
		this.maxUploadSpeed = maxUploadSpeed;
	}

	/**
	 * @return the password
	 */
	public String getPassword()
	{
		return password;
	}

	/**
	 * @param password the password to set
	 */
	public void setPassword(String password)
	{
		this.password = password;
	}

	/**
	 * @return the userName
	 */
	public String getUserName()
	{
		return userName;
	}

	/**
	 * @param userName the userName to set
	 */
	public void setUserName(String userName)
	{
		this.userName = userName;
	}

}
